home *** CD-ROM | disk | FTP | other *** search
-
-
-
- sssseeeettttppppuuuupppp((((3333GGGG)))) sssseeeettttppppuuuupppp((((3333GGGG))))
-
-
-
- NNNNAAAAMMMMEEEE
- sssseeeettttppppuuuupppp - sets the display characteristics of a given pop up menu entry
-
- FFFFOOOORRRRTTTTRRRRAAAANNNN 77777777 SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
- ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee sssseeeettttppppuuuupppp((((ppppuuuupppp,,,, eeeennnnttttrrrryyyy,,,, mmmmooooddddeeee))))
- iiiinnnntttteeeeggggeeeerrrr****4444 ppppuuuupppp,,,, eeeennnnttttrrrryyyy,,,, mmmmooooddddeeee
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
- _p_u_p expects the menu identifier of the menu whose entries you want to
- change. The menu identifier is the returned function value of the
- menu creation call to nnnneeeewwwwppppuuuupppp.
-
- _e_n_t_r_y expects the position of the entry in the menu, indexed from 1.
-
- _m_o_d_e expects a symbolic constant that indicates the display
- characteristics you want to apply to the chosen entry. You can
- specify more than one at a time by adding or logically or-ing
- these values together. For this parameter there are four defined
- symbolic constants:
-
- PPPPUUUUPPPPNNNNOOOONNNN, no special display characteristics, fully functional if
- selected. This is the default mode for newly created menu
- entries.
-
- PPPPUUUUPPPPGGGGRRRREEEE, entry is greyed-out and disabled. Selecting a greyed-out
- entry has the same behavior as selecting the title bar. If the
- greyed-out entry has a submenu associated with it, that submenu
- does not display.
-
- PUPBOX Entry has an empty box to the left.
-
- PUPCHE Entry has a checked box to the left.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- Use sssseeeettttppppuuuupppp to alter the display characteristics of a pop up menu entry.
- Currently, you use this routine to disable and grey-out a menu entry.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEE
- Here is an example that disables a single entry:
-
- menu = newpup()
- call addtop(menu,'menu %t |item 1 |item 2 |item 3 |item 4', 39,0)
- call setpup(menu, 1, PUPGRE)
-
-
- Subsequent calls of ddddooooppppuuuupppp((((mmmmeeeennnnuuuu)))) would display the menu with the menu
- entry labeled ``item 1'' is greyed out, and never gets a return value of
- 1.
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- sssseeeettttppppuuuupppp((((3333GGGG)))) sssseeeettttppppuuuupppp((((3333GGGG))))
-
-
-
- SEE ALSO
- dopup, freepu, newpup
-
- NNNNOOOOTTTTEEEE
- This routine is available only in immediate mode.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-